rem s0995p10:59 do minGW test of just built minGW eui and whatever
:* need to add options to make and view html report when done
:* need a clean testdir pause at the end if there are errors
:* still says fail on euqt tests that pass when run directly

@echo off

set EUTEST=c:\c\LANG\Eu\ver\Euwat400\bin\eutest.exe
set EUTEST=%EUDIR%\bin\eui  -eudir %EUDIR% -BATCH %EUDIR%\source\eutest.ex 

set EUVISTA=1
set EUCONS=1
set TEMP=c:\temp
set TMP=c:\tmp
PYTHONPATH=C:\C\PY\PYTHON24;C:\C\PY\PYTHON24\Lib\site-packages;C:\c\py\Tools\misc
PATH=C:\C\MINGW\BIN;C:\C\UTIL\PEX\CMAKE\CMAKE-~1.3\CMAKE\BIN\;C:\C\LANG\EU\VER\EUWAT400\BIN;C:\UTIL\DLL;C:\UTIL\DLL;C:\C\MINGW\BIN;;C:\C\PY\PYTHON24;C:\WINDOWS\COMMAND
set INCLUDE=C:\C\PY\PYTHON24\include;C:\c\MinGW\include
set C_INCLUDE_PATH=C:\C\PY\PYTHON24\include;C:\c\MinGW\include
set CC=mingw32-g++
set QTDIR=C:\C\C\make_all\qt
PATH=%QTDIR%\bin;%QTDIR%\lib;C:\c\MinGW\bin;%PATH%
REM ~ set PATH=%PATH%;%SystemRoot%\System32
set QMAKESPEC=win32-g++
:* QT_DEBUG_PLUGINS=2 shows errors linking release and debug
:* and slows things down while starting
set QT_DEBUG_PLUGINS=0

set EUINC=C:\c\LANG\Euphoria\orelse;c:\c\LANG\Eu\aplication\wgetter\claro\clarowrap\includes\;c:\c\LANG\Eu\GUI\;c:\rootemp\euphoria\win32libex\Include\
set EUDIR=C:\c\msys\Eu4mingw
PATH=%EUDIR%\bin;%PATH%;%WinDir%\command

rem maybe should translate eutest first?
REM ~ cd C:
REM ~ cd \c\msys\Eu4mingw
cd tests

REM ~ -process-log] [-html]]\n" &-log]\n" &	"  [-verbose]
		
rem eutest -exe "eui ..\source\eu.ex"
@echo eutest

rem interp and translate  think there is no just trans
REM ~ eui -BATCH ..\source\eutest.ex -exe source\eui   -i ..\include  -cc gcc  -ec ..\source\euc.exe -lib   ..\source\eu.a

rem just interpreted
set TRANS=
rem translate too
set TRANS=-cc gcc  -ec ..\source\euc.exe -i %EUDIR%\include -i ..\qt  -lib   ..\source\eu.a
set TRANS=-cc gcc  -ec ..\bake\euc.exe -i %EUDIR%\include -i ..\qt  -lib   ..\bake\libeu.a
set TRANS=-cc gcc  -ec %EUDIR%\bake\euc.exe -i %EUDIR%\include -i ..\qt   -lib   %EUDIR%\bake\libeu.a
set TRANS=-cc gcc  -ec %EUDIR%\bake-2978-R\euc.exe -i %EUDIR%\include -i ..\qt   -lib   %EUDIR%\bake-2978-R\libeu.a
set TRANS=-cc gcc  -ec %EUDIR%\bake-2978-D\euc.exe -i %EUDIR%\include -i ..\qt   -lib   %EUDIR%\bake-2978-D\libeu.a
set TRANS=-cc gcc  -ec %EUDIR%\bin\euc.exe -i %EUDIR%\include -i ..\qt  -lib  %EUDIR%\bin\libeu.a

rem need to set log then run eutest again to process it I think

%EUTEST%  -log   -exe %EUDIR%\bin\eui   -i ..\include  %TRANS%
REM ~ %EUTEST%  -log   -exe ..\source\eui   -i ..\include  %TRANS%
REM ~ %EUTEST%  -log   -exe %EUDIR%\bake\eui  -i %EUDIR%\include -i ..\qt  %TRANS%
REM ~ %EUTEST%  -log   -exe %EUDIR%\bake-2978-R\eui  -i %EUDIR%\include -i ..\qt  %TRANS%
REM ~ %EUTEST%  -log   -exe %EUDIR%\bake-2978-D\eui  -i %EUDIR%\include -i ..\qt  %TRANS%
REM ~ eutest -eudir %EUDIR% not understood 

rem control test with existing eui  would be nice if  could be quiet would be faster
REM ~ %EUTEST%   -log  -i ..\include 

rem  to stdout
%EUTEST%  -i ..\qt  -process-log -html > ..\testsminGW.html
